﻿using System.Data.Linq.Mapping;

namespace vurfu.DataContracts.Graphs
{
    [Table(Name = "dbo.UserGroupGraph")]
    public class UserGroupEdge
    {
        [Column(Name = "Id", DbType = "UniqueIdentifier NOT NULL", IsPrimaryKey = true),]
        public string Id { get; set; }

        [Column(Name = "UserId", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string UserId { get; set; }

        [Column(Name = "GroupId", DbType = "UniqueIdentifier NOT NULL", CanBeNull = false)]
        public string GroupId { get; set; }

        [Column(Name = "Membership", DbType = "Int NOT NULL", CanBeNull = false)]
        public int Membership { get; set; }
    }
}